import unittest
from htmltestreport import HTMLTestReport

from scrips.test import TestLogin
from temp_file import BASE_DIR

if __name__=='__main__':
    unittest.main()
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(TestLogin))
    runner = HTMLTestReport(BASE_DIR + '/reports/login_report.html', '登录接口测试报告', 'V1.0')
    runner.run(suite)